package com.example.meeting.model.domain;

import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Component
public class Person implements Serializable {
    private final static long serialVersionUID = 1L;

    private Long id;
    @NotBlank(message = "列席人姓名不得为空")
    private String name;

    private String phone;

    public Long getId() { return id; }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
